<?php
class mdl_ckey {
	const suid_by_uid = 'suid_by_uid';
	const uid_by_suid = 'uid_by_suid';
	const user_by_uid = 'user_by_uid';
	const uopt_by_uid = 'uopt_by_uid';

	static function getck($ck, $mid) {
		switch($ck) {
			case mdl_ckey::suid_by_uid:
			case mdl_ckey::uid_by_suid:
			case mdl_ckey::user_by_uid:
			case mdl_ckey::uopt_by_uid:
				return "account.{$ck}.{$mid}";
			break;
		}
	}
}